using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace EntLibEC.Shopping.Help
{
    public partial class HelpPage : EntLibWebBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SetMeta();

            string helpTitle = Request.QueryString["title"];

            if (helpTitle != null)
            {
                switch (helpTitle.ToLower().Trim())
                {
                    case "shopping":
                        helpContentControl.HelpFilename = "Help_ShoppingProcess.htm";
                        break;
                    case "companyprofile":
                        helpContentControl.HelpFilename = "Help_companyprofile.htm";
                        break;
                    case "payment":
                        helpContentControl.HelpFilename = "Help_Payment.htm";
                        break;
                    case "deliveryservice":
                        helpContentControl.HelpFilename = "Help_DeliveryService.htm";
                        break;
                    case "shipbyyuantong":
                        helpContentTitle.HelpFilename = "Help_DeliveryType.htm";
                        helpContentControl.HelpFilename = "Help_DeliveryService_yuantong.htm";
                        break;
                    case "shipbyshentong":
                        helpContentTitle.HelpFilename = "Help_DeliveryType.htm";
                        helpContentControl.HelpFilename = "Help_DeliveryService_shentong.htm";
                        break;
                    case "salesorder":
                        helpContentControl.HelpFilename = "Help_SOProcess.htm";
                        break;
                    case "point":
                        helpContentControl.HelpFilename = "Help_Point.htm";
                        break;
                    case "customerrank":
                        helpContentControl.HelpFilename = "Help_CustomerRank.htm";
                        break;
                    case "promotioncode":
                        helpContentControl.HelpFilename = "Help_PromotionCode.htm";
                        break;
                    case "rma":
                        helpContentControl.HelpFilename = "HelpRMA.htm";
                        break;
                    case "security":
                        helpContentControl.HelpFilename = "Help_Security.htm";
                        break;
                    case "other":
                        helpContentControl.HelpFilename = "HelpOther.htm";
                        break;
                    case "aboutus":
                        helpContentControl.HelpFilename = "Help_companyprofile.htm";
                        break;
                    default:
                        helpContentControl.HelpFilename = "Help_companyprofile.htm";
                        break;
                }
            }
            else
            {
                helpContentControl.HelpFilename = "Help_companyprofile.htm";
            }
        }
    }
}
